Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Polyhedron Edge Masks

The edgeFlag field of the polyhedron triangle data structure contains a value that indicates which edges of a polyhedral triangle are to be rendered. You specify a value for that field using a combination of these edge masks:

typedef enum TQ3PolyhedronEdgeMasks {
    kQ3PolyhedronEdgeNone               = 0,
    kQ3PolyhedronEdge01                 = 1 << 0,
    kQ3PolyhedronEdge12                 = 1 << 1,
    kQ3PolyhedronEdge20                 = 1 << 2,
    kQ3PolyhedronEdgeAll                = kQ3PolyhedronEdge01 |
                                          kQ3PolyhedronEdge12 |
                                          kQ3PolyhedronEdge20
} TQ3PolyhedronEdgeMasks;

Constant descriptions

kQ3PolyhedronEdgeNone
Render none of the edges of the triangle.
kQ3PolyhedronEdge01
Render the edge between the first and second vertices (that is, between vertices[0] and vertices[1] ).
kQ3PolyhedronEdge12
Render the edge between the second and third vertices (that is, between vertices[1] and vertices[2] ).
kQ3PolyhedronEdge20
Render the edge between the third and first vertices (that is, between vertices[2] and vertices[0] ).
kQ3PolyhedronEdgeAll
Render all of the edges of the triangle.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |